Ext.define('yzmh.store.Comics', {
    extend: 'Ext.data.Store',
    model: 'yzmh.model.Comic',
    //autoLoad: true,
    remoteSort: true,
    buffered: false,
    pageSize: 25,
    //proxy: {
    //    type: 'jsonp',
    //    url: 'data/comics.aspx?a=list',
    //    reader: {
    //        root: 'data',
    //        totalProperty: 'total'
    //    },
    //    // sends single sort as multi parameter
    //    simpleSortMode: true
    //},
    sorters: [{
        property: 'id',
        direction: 'DESC'
    }],
    proxy: {
        type: 'ajax',
        api: {
            read: 'data/comics.aspx?a=list',
            update: 'data/comics.aspx?a=update'
        },
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'total'
        },
        simpleSortMode: true
    }
});